#from recommendations import critics, sim_distance, sim_pearson, topMatches, getRecommendations
from recommendations import *

#print 'test test'
#print critics['Lisa Rose']
#reload(recommendations)
#from recommendations import sim_distance
#print sim_distance(critics,'Lisa Rose','Gene Seymour')
#print sim_pearson(critics,'Lisa Rose','Gene Seymour')
print topMatches(critics, 'Jeren', 2)
#
print getRecommendations(critics,'Jeren')
print getRecommendations(critics,'Jeren', sim_distance)
#print getRecommendations(critics,'Toby')
#print getRecommendations(critics,'Toby', sim_distance)
movie = transformPrefs(critics)
#print topMatches(movie,"Just My Luck", 3)
#print getRecommendations(movie,"Superman Returns")
itemsim=calculateSimilarItems(critics)
#print itemsim
print getRecommendedItems(critics,itemsim,'Jeren')